<ion-header>
  <ion-navbar no-border-bottom>
    <ion-title>高级查询</ion-title>
    <ion-buttons>
      <button ion-button (click)="cancel()">关闭</button>
    </ion-buttons>
  </ion-navbar>
</ion-header>
<ion-content>
  <ion-list>
    <ion-item>
      <ion-label>股票代码:</ion-label>
      <ion-input clearInput="true" placeholder="请输入编号或拼音" [(ngModel)]="recommendKey"></ion-input>
    </ion-item>

    <ion-item>
      <ion-label>推荐日期:</ion-label>
      <ion-datetime displayFormat="YYYY-MM-DD" pickerFormat="YYYY-MM-DD" [(ngModel)]="startDate"
                    cancelText="取消" doneText="确定" max="{{maxDate}}"
                    (ionChange)="ionChange()">
      </ion-datetime>
    </ion-item>
    <ion-item>
      <ion-label>结束日期:</ion-label>
      <ion-datetime displayFormat="YYYY-MM-DD" pickerFormat="YYYY-MM-DD" [(ngModel)]="endDate"
                    cancelText="取消" doneText="确定" max="{{maxDate}}">
      </ion-datetime>
    </ion-item>
  </ion-list>
  <ion-row>
    <ion-col text-center>
      <button block ion-button color="light">
        <ion-icon name="search"></ion-icon>
        搜索
      </button>
    </ion-col>
    <ion-col text-center>
      <button block ion-button color="light" (click)="clear()">
        <ion-icon name="trash"></ion-icon>
        清空
      </button>
    </ion-col>
  </ion-row>
</ion-content>

